help(print)

print(1, 3, 4)
print(1, 3, 4, sep=" ")


def sum(*nums):
    """
    求和函数
    :param nums: 整数或者浮点数
    :return: 求和结果
    """
    # 定义一个变量，来保存结果
    result = 0
    # 遍历元组，并将元组中的数进行累加
    for n in nums:
        result += n
    return result


# a = sum(1,4,7)
# a += 10
# print(a)

# help(sum)
#
#
# print("*" * 50)
#
# a = 20
# def test1():
#     global a
#     a = 10
#     print("a is :", a)
#
# test1()
# print("out a is :", a)


def fac(input_):
    n = 1
    for i in range(1, input_ + 1):
        n *= i
    return n


res = fac(10)
print(res)

locals()
